package com.cy.bfzcommons.service;



import com.cy.bfzcommons.pojo.Orders;

import java.util.List;

public interface OrdersService {


    // 订单删除
    void deleteOrders(Integer ordersId);

    // 订单查询
    List<Orders> getOrders();
    // 订单状态修改
    void upOrders(Orders orders);

    Integer addOrders(Orders orders);
    //根据订单号查询
    List<Orders> getOrders2(Integer orderNumber);
    //更改状态
    Integer updateStatus(Integer ordersId,Integer status);



    //---------------------------------------------------------------------------------前端页面使用的请求
    Orders selectOrderById(Integer ordersId);

    List<Orders> userOrderByIdState(Integer userId,Integer state);

    List<Orders> userOrderById(Integer userId);
}
